/* utilties.c */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utilities.h"

char* initCharPointer(int size) {
	char *ptr;

	if (size > 0) {
		size += 1;
		ptr = (char*)malloc(size * sizeof(char));
		memset(ptr, 0, size);
		return ptr;
	}

	return NULL;
}

void expandCharPointer(int expandSize, char* ptr) {
	realloc(ptr, expandSize);
}